#include "./connections.hpp"

  int Connections::insert(std::string key, Client conn) {
       connectionsMap.emplace(key, conn);
       return 0;
  }

  int Connections::erase(std::string key) {
        return connectionsMap.erase(key);
  }

  size_t Connections::size() {
       return connectionsMap.size();
  }

  Client Connections::get(std::string key){
    return connectionsMap[key];
  }